class Goods
    attr_accessor :price, :title
    def initialize(title="怪物猎人世界",price=200)
        @title = title
        @price = price
    end
    def show()
        puts "title #{@title}"
        puts "price #{@price}" 
    end
end


mygame = Goods.new()
mygame.show()

puts "title is " + mygame.respond_to?("title").to_s
puts "price is " + mygame.respond_to?("price").to_s

mygame.title = "Super Mario"
mygame.price = 150
mygame.show()
